<?php
class Apply extends AppModel {
	var $name = 'Apply';
	var $displayField = 'tieude';
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $hasOne = array(
		'ApplyImage' => array(
			'className' => 'ApplyImage',
			'foreignKey' => 'apply_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $belongsTo = array(
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'user_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'City' => array(
			'className' => 'City',
			'foreignKey' => 'city_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'District' => array(
			'className' => 'District',
			'foreignKey' => 'district_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Career' => array(
			'className' => 'Career',
			'foreignKey' => 'career_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'ApplyType' => array(
			'className' => 'ApplyType',
			'foreignKey' => 'apply_type_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
}
